using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;

using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;
using System.ServiceModel.Web;


namespace TicketSellerService {
	public class VendorServerHost {
		
		static public void Main( string[] args) {

			using( WebServiceHost host = new WebServiceHost( typeof(FlightTicketService), 
			                                         new Uri( "http://localhost:8080/VendorService")) ) {
				
				try {
					host.Open( );
					Console.ReadLine( );
				} catch (InvalidOperationException e) {
					Console.WriteLine( e.Message.ToString( ));
					Console.WriteLine( e.StackTrace.ToString( )); 
				} finally {
					host.Close( );
				}
			}
		}
	}
}

